package com.cms.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cms.exception.SystemDBException;
import com.cms.model.TrSysRole;
import com.cms.model.TrSysRoleFun;

public interface SystemRoleMapper {


	  /***
	   * 
	   * @param role
	   * @throws SystemDBException
	   */
	  public void addSysRole(@Param("role")TrSysRole role)throws SystemDBException;
	  
	  
	  
	  public void addSysRoleFun(@Param("sysRoleFuns")List<TrSysRoleFun>funs)throws SystemDBException;
	  
	  
	  /***
	   * 
	   * @param role
	   * @throws SystemDBException
	   */
	  public void updateSysRole(@Param("role")TrSysRole role)throws SystemDBException;
	  
	  /***
	   * 
	   * @param roleId
	   * @throws SystemDBException
	   */
	  public void deleteSysRole(@Param("roleId")int roleId)throws SystemDBException;
	  
	  /**
	   * 
	   * @param roleId
	   * @throws SystemDBException
	   */
	  public void deleteRoleFun(@Param("roleId")int roleId)throws SystemDBException;
	  
	  /***
	   * 
	   * @param roleId
	   * @return
	   * @throws SystemDBException
	   */
	  public TrSysRole querySysRole(int roleId)throws SystemDBException;

}
